<?
function show_catalogues($catalogues, $href = ''){    
    foreach($catalogues as $catalogue){
        echo "<li><a href=\"$href{$catalogue['href']}\">{$catalogue['name']}</a>";
        if(isset($catalogue['subcatalogues']))
            echo show_catalogues($catalogue['subcatalogues'], $href.$catalogue['href']);    
        echo "</li>";
    }    
}

echo "<ul id=\"catalogue_menu\">";
show_catalogues($catalogues); 
echo "</ul>";

?>